/*
 * klog.h
 *
 *  Created on: Dec 6, 2011
 *      Author: kylintse
 */

#ifndef KLOG_H_
#define KLOG_H_

#include <QtCore>

enum LogLevel
{
	llError=0x0001,
	llWarning=0x0002,
};

class klog
{
public:
	klog(const QString& path,quint16 flag);
	virtual ~klog();

public:
	void writeLog(LogLevel level,const QString& title,const QString& content);

private:
	QString m_path;
	quint16 m_flag;
};

#endif /* KLOG_H_ */
